package com.huaruan.food.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * SysUserinfo entity. @author MyEclipse Persistence Tools
 */

public class SysUserinfo implements java.io.Serializable {

	// Fields

	private static final long serialVersionUID = 1L;
	private Integer id;
	private SysRoleinfo sysRoleinfo;
	private String login;
	private String pwd;
	private String username;
	private Integer state;
	private CompanyInfo companyInfo;
	private Set<OrderInfo> orders = new HashSet<OrderInfo>(0);
	
	// Constructors

	public Set<OrderInfo> getOrders() {
		return orders;
	}

	public void setOrders(Set<OrderInfo> orders) {
		this.orders = orders;
	}

	public CompanyInfo getCompanyInfo() {
		return companyInfo;
	}

	public void setCompanyInfo(CompanyInfo companyInfo) {
		this.companyInfo = companyInfo;
	}

	/** default constructor */
	public SysUserinfo() {
	}

	/** full constructor */
	public SysUserinfo(SysRoleinfo sysRoleinfo, String login, String pwd,
			String username, Integer state) {
		this.sysRoleinfo = sysRoleinfo;
		this.login = login;
		this.pwd = pwd;
		this.username = username;
		this.state = state;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public SysRoleinfo getSysRoleinfo() {
		return this.sysRoleinfo;
	}

	public void setSysRoleinfo(SysRoleinfo sysRoleinfo) {
		this.sysRoleinfo = sysRoleinfo;
	}

	public String getLogin() {
		return this.login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

}